package com.study.web.dao.syspermission;

import java.util.List;
import java.util.Map;

import com.study.common.base.dao.BaseDao;
import com.study.common.exception.BizException;
import com.study.web.dto.PermissionDto;
import com.study.web.entity.SysPermission;
import com.study.web.entity.SysRolePermission;

/**
 * SysPermissionDao.java
 * @author yaojinshan
 * @since 2018年6月11日下午5:01:09
 */
public interface SysPermissionDao extends BaseDao<SysPermission> {

	List<Map<String,Object>> queryMenuDtoListByParentIdAndRoleId(Map<String,Object> paramsMap) throws BizException;

	List<SysPermission> queryFirstLevelMenuByRoleId(Map<String, Object> paramsMap);

	List<PermissionDto> queryPermisssonOfRole(Map<String, Object> allUseableRolePermisssonParamMap);
	/**
	 * 删除老的角色权限数据
	 */
	void deleteOldRolePermission(Long roleId);
	/**
	 * 批量插入角色权限信息
	 */
	void batchInsertRolePermission(List<SysRolePermission> list);

}
